package com.czmh.etc.onlinepubsys.feign.newrun;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import com.czmh.etc.onlinepubsys.feign.newrun.constans.NewrunConstants;
import com.czmh.etc.onlinepubsys.json.JsonResult;

/**
 * @ClassName：YueClient
 * @Description：粤通卡开发服务
 * @Author： sevenchen.
 * @Date：2019/10/16 16:29.
 * @Version：1.0.0
 */
@FeignClient(name = "EtcApplyInfoClient",
        url = NewrunConstants.FETCH_DOMAIN + "/api/applyInfo/",
        fallback = EtcApplyInfoClient.DefaultFallback.class
)
public interface EtcApplyInfoClient {
    /**
     * 查询申请记录
     *
     * @return
     */
    @PostMapping(value = "selectApplyRecord")
    JsonResult selectApplyRecord();

    public class DefaultFallback implements EtcApplyInfoClient {

        @Override
        public JsonResult selectApplyRecord() {
            return null;
        }
    }
}
